package com.lx.mailweb.domain;

public enum Role {
	ADMIN("管理员", "01");

	private Role(String name, String value) {
		this.name = name;
		this.value = value;
	}

	private String name;
	private String value;

	public String getValue() {
		return value;
	}

	public static String getName(String value) {
		for (Role t : Role.values()) {
			if (t.getValue().equals(value)) {
				return t.name;
			}
		}
		return null;
	}

}
